<?php include '../public/header.php' ?>
<?php include '../public/header_index.php' ?>
<link rel="stylesheet" type="text/css" href="/static/component/laytp/module/cityPicker/city-picker.css">
<style>
    .city-picker-span{height: 28px !important;overflow: hidden;}
</style>
<body class="laytp-container">
<div id="opt_nav">
</div>


<div class="layui-card" id="table-card">
    <div class="layui-card-body">
        <div class="layui-row">
            <div class="layui-col-md12" id="table_list">
                <div class="layui-card-body">
                    <table id="datalist" lay-filter="datalist"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="test-dropdown-toolbar-barDemo">
    <div class="tab-list-authbut">
        <a href="javascript:;" class="bar_opt" onclick="auth_but_func_show('查看','{{d.LAY_TABLE_INDEX}}')">查看</a>
    </div>
</script>
<script type="text/html" id="toolbarDemo">
    <div class = "layui-btn-container">
    </div>
</script>
<script>
    var currButAuth, currTabData;
    layui.use(['table','form','soulTable'], function () {
        var table = layui.table, form = layui.form, soulTable = layui.soulTable;

        $('#TableSearchReset').click(function () {
            $('.xmselect_div>xm-select').find('.xm-label-block').css('display','none');
            $('.xmselect_div').append('<div class="xmselect_title">请选择</div>');
            searchTableFunc(form, table)
        });

        setSouTableExport('人员情况统计表');
        table.render({
            elem: "#datalist",id: "datalist"
            ,url: facade.url(ask_cert_person_tong_list),where: {}, page: false, height: 'full-140'
            ,soulSort: TabInit.soulSort,method: TabInit.method, toolbar: TabInit.toolbar, overflow: TabInit.overflow
            ,defaultToolbar: TabInit.defaultToolbar,filter: TabInit.filter
            ,request: TabInit.request,response: TabInit.response,contextmenu:get_table_contextmenu(soulTable)
            ,text: TabInit.text,totalRow: true
            ,parseData: function (res) {

                render_from();
                return {
                    "code": res.code,
                    "msg": res.message,
                    "count": res.data.total,
                    "data": res.data.data
                };
            }
            , cols: [
                [
                    {type: "checkbox", fixed: 'left',rowspan:2}
                    ,{type: 'numbers',title:'序号',totalRowText: '合计',fixed:'left',rowspan:2}
                    ,{field: 'name', title: '单位名称',fixed:'left',rowspan:2}
                    ,{field: 'num_zai', title: '从业人员人数',rowspan:2,totalRow: true}
                    ,{field: 'num_lao', title: '签订劳动合同人数',rowspan:2,totalRow: true}
                    ,{field: 'num_nan', title: '男职工人数',rowspan:2,totalRow: true}
                    ,{field: 'num_nv', title: '女职工人数',rowspan:2,totalRow: true}
                    ,{field: 'num_shao', title: '少数民族职工人数',rowspan:2,totalRow: true}

                    ,{field: '', title: '岗位类型',colspan:3,align:'center'}
                    ,{field: '', title: '劳动合同期限',colspan:3,align:'center'}
                    ,{field: '', title: '缴纳社会保险人数',colspan:3,align:'center'}
                    ,{field: '', title: '学历结构',colspan:4,align:'center'}
                    ,{field: '', title: '年龄结构',colspan:8,align:'center'}
                    ,{field: '', title: '专业技术职称',colspan:4,align:'center'}
                    ,{field: '', title: '技术工人等级',colspan:5,align:'center'}
                    ,{field: '', title: '注册职业证书',colspan:8,align:'center'}

                    ,{field: 'yue_zeng', title: '本月新增人数',rowspan:2,totalRow: true}
                    ,{field: 'yue_jian', title: '本月减少人数',rowspan:2,totalRow: true}
                ],
                [
                    {field: 'gang_guan', title: '管理人员人数',totalRow: true}
                    ,{field: 'gang_ji', title: '技术人员人数',totalRow: true}
                    ,{field: 'gang_gong', title: '工人人数',totalRow: true}

                    ,{field: 'lao_gu', title: '固定期限',totalRow: true}
                    ,{field: 'lao_wu', title: '无固定期限',totalRow: true}
                    ,{field: 'lao_qi', title: '其他',totalRow: true}

                    ,{field: 'soc_zong', title: '总计',totalRow: true}
                    ,{field: 'soc_shi', title: '在十一师缴费人数',totalRow: true}
                    ,{field: 'soc_wai', title: '在疆外缴费人数',totalRow: true}

                    ,{field: 'xue_yan', title: '研究生及以上',totalRow: true}
                    ,{field: 'xue_ben', title: '大学本科',totalRow: true}
                    ,{field: 'xue_zhuan', title: '大专',totalRow: true}
                    ,{field: 'xue_zhong', title: '中专及以下',totalRow: true}

                    ,{field: 'age_25', title: '25岁以下',totalRow: true}
                    ,{field: 'age_26', title: '26-30岁',totalRow: true}
                    ,{field: 'age_31', title: '31-35岁',totalRow: true}
                    ,{field: 'age_36', title: '36-40岁',totalRow: true}
                    ,{field: 'age_41', title: '41-45岁',totalRow: true}
                    ,{field: 'age_46', title: '46-50岁',totalRow: true}
                    ,{field: 'age_51', title: '51-55岁',totalRow: true}
                    ,{field: 'age_56', title: '56岁以上',totalRow: true}

                    ,{field: 'zhi_gao', title: '正高',totalRow: true}
                    ,{field: 'zhi_fu', title: '副高级',totalRow: true}
                    ,{field: 'zhi_zhong', title: '中级',totalRow: true}
                    ,{field: 'zhi_chu', title: '初级',totalRow: true}

                    ,{field: 'ji_gaoji', title: '高级技师',totalRow: true}
                    ,{field: 'ji_ji', title: '技师',totalRow: true}
                    ,{field: 'ji_gao', title: '高级工',totalRow: true}
                    ,{field: 'ji_zhong', title: '中级工',totalRow: true}
                    ,{field: 'ji_chu', title: '初级工',totalRow: true}

                    ,{field: 'zhu_yi', title: '一级建造师',totalRow: true}
                    ,{field: 'zhu_er', title: '二级建造师',totalRow: true}
                    ,{field: 'zhu_jian', title: '注册监理工程师',totalRow: true}
                    ,{field: 'zhu_an', title: '注册安全工程师',totalRow: true}
                    ,{field: 'zhu_yizao', title: '一级造价工程师',totalRow: true}
                    ,{field: 'zhu_erzao', title: '二级造价工程师',totalRow: true}
                    ,{field: 'zhu_kuai', title: '注册会计师',totalRow: true}
                    ,{field: 'zhu_qi', title: '其他各类注册执业资格证书',totalRow: true}
                ],
            ]
            , done: function (res) {
                soulTable.render(this);
            }
        });

        listTableSearch(form, table);
    });


</script>
</body>
</html>
